package com.shyroke.daydayzhuanapi.mapper;

import com.shyroke.daydayzhuanapi.dto.AdminSearchLogListDto;
import com.shyroke.daydayzhuanapi.entity.SearchLogEntity;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SearchLogMapper {
    @Autowired
    private ModelMapper modelMapper;

    public AdminSearchLogListDto entityToDto(SearchLogEntity e) {
        return modelMapper.map(e, AdminSearchLogListDto.class);
    }
}
